package com.zzyl.mapper;



import com.zzyl.entity.Reservation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface CustomerReservationMapper {

    /**
     * 插入一条预约记录
     */
    void insertReservation(Reservation reservation);



    /**
     * 根据 ID 查询预约记录
     */
    List<Reservation> getReservationById(Long id);



    List<String> getAllReservationsByTime(Long userId);

    List<Reservation> queryReservationByPage(Integer status, Long userId);

    void delReservationStatus(Long id);

    List<Reservation> getReservationAll();

    void updateReservationStatus(Long id);

}
